{include file="news/header.tpl"}

<div style="margin:0 auto;height:60px;width:500px;padding:20px;">
<input id="file_upload" name="scene" type="file" class="input-large">效果图中须包含<span style="color:red">{$content.name}</span> <br>(审核通过就送50积分,传的越多,积分越多,日入上万积分不是问题！并将你的大名和店铺地址展示在这款产品上)
<img src="./static/attached/face/default/13.gif">
</div>

<script type="text/javascript"
    src="./static/public/uploadify/jquery.uploadify-3.1.js"></script>
   {literal} 
<script>
 $(document).ready(function()
        {
            $("#file_upload").uploadify({
                'buttonText':'上传实拍图或效果图',
                'swf': './static/public/uploadify/uploadify.swf',
                'uploader': './index.php?plugin/api',
                'cancelImg': './static/public/uploadify/cancel.png',
                'folder': 'UploadFile',
                'queueID': 'fileQueue',
                'formData': {'uid':{/literal}{$user.uid},'nid':{$content.nid}{literal},'filter':'login','plugin':'ScenePlugin'},
                'auto': true,
               'fileTypeExts': '*.jpg;*.png',//允许上传的文件类型，限制弹出文件选择框里能选择的文件
                'multi': false,
                'fileSizeLimit':'2MB',
                onUploadSuccess : function(file,data,response) {
                                  var obj = jQuery.parseJSON(data);                   

  alert(obj.message);


       }
            });
        });  
</script>
{/literal}
